package org.bmi.gwt.examples.echo.shared;

import java.util.Date;

import org.bmi.gwt.mi.shared.MiProxy;
import org.bmi.gwt.mi.shared.annotations.TargetMiObjectClass;

@TargetMiObjectClass(miObjectClass = EchoObject.class)
/*
 * If you try to define as target object an interface no proxy constructor can
 * be defined, an exception will be thrown
 */
// @TargetMiObjectClass(miObjectClass = EchoObjectInterface.class)
public interface EchoProxy extends MiProxy
{
	/*
	 * The proxy must be an interface and must define the same methods with the
	 * same parameters as in the target class.
	 * 
	 * Must then, through annotations, be defined which constructor the proxy
	 * should chose, and the class of the target class.
	 */

	void echo(Date date, String str);
}
